package com.ruoyi.system.api.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品类目对象 tb_item_cat
 * 
 * @author hbxfwf
 * @date 2024-03-07
 */
public class ItemCat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类目ID */
    private Long id;

    /** 父类目ID=0时，代表的是一级的类目 */
    @Excel(name = "父类目ID=0时，代表的是一级的类目")
    private Long parentId;

    /** 类目名称 */
    @Excel(name = "类目名称")
    private String name;

    /** 类型id */
    @Excel(name = "类型id")
    private Long typeId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("typeId", getTypeId())
            .toString();
    }
}
